package cn.ruituo.web;
import java.util.*;

import cn.ruituo.vo.TextPaper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author oldliu
 * @since 1.0
 */
@RestController
public class TestController {
    @Value("${myschool.uploadpath}")
    private String path;

    @Autowired
    private MyConfig config;

    @Autowired
    private TextPaper p;



    @GetMapping("show1")
    public String findUpload(){
        return path;
    }
    @GetMapping("showfileType")
    public String show2(){
        return String.valueOf(config);
    }
    @GetMapping("showlogs")
    public String show3(){
        return String.valueOf(config.getLog());
    }

    @GetMapping("showPaper")
    public TextPaper showPaper(){
        return p;
    }
}
